﻿using log4net.Core;
using log4net.Layout.Pattern;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EYangFramework.Common.Logger
{
    public class CreateUserPatternConvert : PatternLayoutConverter
    {
        protected override void Convert(TextWriter writer, LoggingEvent loggingEvent)
        {
            var logInfo = loggingEvent.MessageObject as CustomLogInfo;
            if (logInfo is null)
                return;
            writer.Write(logInfo.CreateUser);
        }
    }
}
